<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Hash {

    public static function create($algo, $data, $salt) {
        $context = hash_init($algo, HASH_HMAC, $salt);
        hash_update($context, $data);
        return hash_final($context);
    }

}

?>
